import subprocess
import tkinter as tk

AppWindow = tk.Tk()
AppWindow.title("加密大亨模拟游戏1中英文版")
screenwidth = AppWindow.winfo_screenwidth()
screenheight = AppWindow.winfo_screenheight()
width = 400
height = 185
AppWindow.geometry("%dx%d+%d+%d" % (width, height, (screenwidth - width) / 2, (screenheight - height) / 2))
AppWindow.resizable(False, False)
label1 = tk.Label(AppWindow, text="加密大亨模拟游戏1",font=("Arial",18))
label1.pack()
frame=tk.Frame(AppWindow)
frame.pack()
#登陆，注册，
def LoginSignup():
    AppWindow.destroy()
    subprocess.Popen(["python","./chinese/LoginSignup.py"],shell=True)


# 忘记\更改密码,忘记\更改用户名,
def forget_update():
    pass
# 重置数据，
def restore():
    pass
#退出系统
def ExitSys():
    exit(0)

LoginSignupButton=tk.Button(frame,text="登录/注册",font=("Arial",16),width=14,command=LoginSignup)
LoginSignupButton.grid(row=0,column=0,padx=5)
ForgetUpdateUsernamePasswordButton=tk.Button(frame, text="忘记更改\n用户名/密码",font=("Arial",16),width=14,command=forget_update)
ForgetUpdateUsernamePasswordButton.grid(row=0, column=1, padx=5,pady=5)
RestoreButton=tk.Button(frame, text="重置数据",font=("Arial",16),width=14,command=restore)
RestoreButton.grid(row=1, column=0, padx=5, pady=5)
ExitButton = tk.Button(frame, text="退出系统",font=("Arial",16),width=14,command=ExitSys)
ExitButton.grid(row=1, column=1, padx=5, pady=5)
AppWindow.mainloop()
